package yl.hs.bmipfull.daos.finance;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.finance.ReceiptFreightSettleMainEntity;
import yl.hs.bmipfull.pojo.material.PurchaseReceiptEntity;

import java.util.List;
import java.util.Map;


@Repository
public interface IPurchaseReceiptFreightSettleMainDao extends BaseDao<ReceiptFreightSettleMainEntity> {
    int queryCountByCondition(@Param("map") Map<String, Object> query, List<Map<String, Object>> filters);

    Integer deleteBySettleSN(@Param("settleSN") String settleSN);

    List<ReceiptFreightSettleMainEntity> queryPage(@Param("map") Map<String, Object> query, List<Map<String, Object>> filters);

    List<PurchaseReceiptEntity> queryTempSettleOrders(@Param("map") Map<String, Object> searchQuery, List<Map<String, Object>> filters);

    List<ReceiptFreightSettleMainEntity> queryCarrierSettleLast(@Param("map") Map<String, Object> searchQuery, List<Map<String, Object>> filters);

    List<PurchaseReceiptEntity> querySettleOrdersBySettleSN(String settleSN);

    Integer changeOrderToSettled(int state,String settleSN);
}
